#pragma once
/***********************************************************************************************
COPYRIGHT 2011 Mafahir Fairoze

This file is part of Neural++.
(Project Website : http://mafahir.wordpress.com/projects/neuralplusplus)

Neural++ is a free software. You can redistribute it and/or modify it under the terms of
the GNU General Public License as published by the Free Software Foundation, either version 3
of the License, or (at your option) any later version.

Neural++ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License <http://www.gnu.org/licenses/> for more details.

***********************************************************************************************/

#include "ActivationLayer.h"

namespace NeuralPlusPlus
	{
	namespace Core
		{
		namespace Backpropagation        
			{
			/// <summary>
			/// An <see cref="ActivationLayer"/> using sine activation function
			/// </summary>
			class SineLayer : public ActivationLayer
				{
				/// <summary>
				/// Constructs a new SineLayer containing specified number of neurons
				/// </summary>
				public: SineLayer(int neuronCount);

						/// <summary>
						/// Sine activation function
						/// </summary>
				public: double Activate(double input, double previousOutput) override;

						/// <summary>
						/// Derivative of sine function
						/// </summary>
				public: double Derivative(double input, double output) override;


				};
			}
		}
	}